{include file="public/header" /}

<body class="bgc">
    <div class="header" onClick="goBacklist();">
        <span class="layui-icon layui-icon-left"></span> 交易明细
    </div>

    <ul class="my-order-list tpl_list">

    </ul>
    <script id="template" type="text/html">


    {{# for(var i=0;i < d.data.length ;i++){ }}
    <li>
        <p class="flex-layout">{{d.data[i].type == 2 ?'卖家：'+d.data[i].user.code+'-'+d.data[i].user.nickname+(d.data[i].user.mobile?'-'+d.data[i].user.mobile:''):'买家：'+d.data[i].buser.code+'-'+d.data[i].buser.nickname+(d.data[i].buser.mobile?'-'+d.data[i].buser.mobile:'')}}<span>{{d.data[i].statusText}}</span></p>
        <div class="b flex-layout" style="height: 1.5rem !important;">
            <div class="time">{{d.data[i].type == 2?'卖出':'买入'}}时间：{{d.data[i].create_time}}</div>
        </div>
        <div class="b flex-layout" style="height: 1.5rem !important;">
            <div class="time">单价：{{d.data[i].price}}</div>
            <div class="time">数量：{{d.data[i].num}}</div>
            <div class="time">总价：{{d.data[i].money}}</div>
        </div>
    </li>
    {{# } }}

</script>
</body>
{include file="public/footer"/}
<script>
    $(function () {
        getFlow('{$Request.param.id?:""}', "{:url('deal/getDetailList')}");

    })
    function goBacklist() {
        window.location.href = "{:url('deal/my_deal_publish')}?type={$Request.param.type?:1}&status={$Request.param.status?:''}";
    }
</script>

</html>